const fs = require('fs');

async function getImgByImgname(img){
  let path = '/home/suhan/sql/04-cloud/image/'+img
  try{
    file = fs.readFileSync(path);
  } catch(e) {
    console.log(e)
  }

  let mimeType = mime.lookup(path);

  return file;
}

module.exports = {
  getImgByImgname
}
